<%--特别注意，每个__FMTExtend最后一行的变量必须没有逗号，否则ie6很容易会有问题 --%>
<script type="text/javascript">
var __FMT = {};
var __FMTExtend = {};

<%--全局--%>
__FMTExtend = {
	common_loading:"<fmt:message key="common.loading"/>",<%--正在保存信息，请稍等--%>
	store_hello:"<fmt:message key="store.hello"/>",<%--您好，--%>
	store_welcome:"<fmt:message key="store.welcome"/>",<%--欢迎来到--%>
	customer_login:"<fmt:message key="customer.login"/>",<%--[请登录]--%>
	customer_logout:"<fmt:message key="customer.logout"/>",<%--[退出] --%>
	customer_signup:"<fmt:message key="user.signup"/>",<%--[免费注册]  --%>
    store_title:"${applicationScope.appConfig.storeTitle}",
    common_message_dwrException:"<fmt:message key="common.message.dwrException"/>",<%--您的操作过时，本页面将会重新刷新。--%>
    product_isAddToFavorite:"<fmt:message key="product.isAddToFavorite"/>"<%--是否加入收藏夹。--%>
};
$j.extend(__FMT,__FMTExtend);


<%-- 登陆对话框 --%>
<c:if test="${probizJs_loginDlg == true}">
__FMTExtend = {
	customer_username_isRequired:"<fmt:message key="customer.username.isRequired"/>",
	customer_password_isRequired:"<fmt:message key="customer.password.isRequired"/>",
	customer_login_fail:"<fmt:message key="customer.login.fail"/>",
	loginConfirm:"<fmt:message key="common.loginConfirm"/>",
	first_login:"<fmt:message key="customer.login.header"/>"
};
$j.extend(__FMT, __FMTExtend); 	
</c:if>

<%-- 购物车 --%>
<c:if test="${probizJs_shoppingcart == true}">
__FMTExtend = {
	shoppingcart_continueShopping:"<fmt:message key="shoppingcart.continue"/>",    		
	shoppingcart_goToShoppingcart:"<fmt:message key="shoppingcart.goToShoppingcart"/>",  	
	shoppingcart_viewFavorite:"<fmt:message key="shoppingcart.viewFavorite"/>",	
	shoppingcart_isDeleted:"<fmt:message key="shoppingcart.isDeleted"/>",<%--是否在购物车里面删除商品。--%>
	minicart_subtotal:"<fmt:message key="minicart.subtotal"/>",							
	minicart_product:"<fmt:message key="shoppingcartItem.product"/>",						
	minicart_totalQuantity:"<fmt:message key="minicart.totalQuantity"/>",					
    minicart_addToCartSuccess:"<fmt:message key="minicart.addToCartMessage"/>",
    minicart_cart:"<fmt:message key="minicart.cart"/>",
    minicart_unit:'<fmt:message key="minicart.itemUnit"/>',
    button_close:"<fmt:message key="button.close"/>",
    stockNotify_sign_confirm:"<fmt:message key="stockNotify.sign.confirm"/>"
};
$j.extend(__FMT, __FMTExtend); 
</c:if>


<%-- 结账 --%>
<c:if test="${probizJs_checkout == true}">
__FMTExtend = {
	checkouk_destinationUnreachable:"<fmt:message key="checkout.destinationUnreachable"/>",
    checkouk_selfCollectDestinationUnreachable:"<fmt:message key="checkout.selfCollect.destinationUnreachable"/>",
    checkout_timeout:"<fmt:message key="checkout.timeout"/>",
    checkout_shippingMethodName:"<fmt:message key="checkout.paymentMethod.shippingMethodName"/>",	
    checkout_shippingCost:"<fmt:message key="checkout.paymentMethod.shippingCost2"/>",				
    checkout_shippingEstimatedDeliveryTime:"<fmt:message key="checkout.paymentMethod.shippingEstimatedDeliveryTime"/>",	
    checkout_shippingNote:"<fmt:message key="checkout.paymentMethod.shippingNote"/>",				
    checkout_giftCertificateNo:"<fmt:message key="checkout.giftCertificatePayment.giftCertificateNo"/>",					
    checkout_giftCertificateBalance:"<fmt:message key="checkout.giftCertificatePayment.balance"/>",						
    checkout_giftCertificateUsed:"<fmt:message key="checkout.giftCertificatePayment.used"/>",								
    checkout_giftCertificateUsedAmount:"<fmt:message key="checkout.giftCertificatePayment.usedAmount"/>",					
    checkout_giftCertificateMsg1:"<fmt:message key="checkout.giftCertificatePayment.msg1"/>",		
    checkout_consigneeNotSaved:"<fmt:message key="checkout.error.notSaved.consignee"/>",			
    checkout_virtualConsigneeNotSaved:"<fmt:message key="checkout.error.notSaved.virtualConsignee"/>",		
    checkout_paymentMethodNotSaved:"<fmt:message key="checkout.error.notSaved.paymentMethod"/>",	
    checkout_remarkNotSaved:"<fmt:message key="checkout.error.notSaved.remark"/>",					
    checkout_giftWrapNotSaved:"<fmt:message key="checkout.error.notSaved.giftWrap"/>",				
    checkout_invoiceNotSaved:"<fmt:message key="checkout.error.notSaved.invoice"/>",				
    checkout_giftCertificatePaymentNotSaved:"<fmt:message key="checkout.error.notSaved.giftCertificatePayment"/>",			
    checkout_shopPointPaymentNotSaved:"<fmt:message key="checkout.error.notSaved.shopPointPayment"/>",						
    checkout_noShippingCost:"<fmt:message key="checkout.paymentMethod.noShippingCost"/>",	
    checkout_noGiftWrap:"<fmt:message key="checkout.giftWrap.noCost"/>",						
    checkou_bill_y:"<fmt:message key="order.yes.order"/>",
    checkou_bill_n:"<fmt:message key="order.not.order"/>",											
    checkou_wrap_y:"<fmt:message key="checkout.yes.wrap"/>",
    checkou_wrap_n:"<fmt:message key="checkout.not.wrap"/>",
    checkou_error:"<fmt:message key="checkout.error"/>",
    checkout_loading:"<fmt:message key="checkout.placeOrder.loading"/>"
};
$j.extend(__FMT, __FMTExtend); 	
</c:if>

<%-- 商品详细 --%>
<c:if test="${probizJs_productDetail == true}">
__FMTExtend = {
	productDetail_referToFriend:"<i18n:msg key="productDetail.referToFriend"/>",
    productDetail_referToFriend_tip:"<i18n:msg key="productDetail.referToFriend.tip"/>",
    productDetail_imageLoading:"<i18n:msg key="productDetail.imageLoading"/>",
    productDetail_selected:"<i18n:msg key="productDetail.selected"/>",
    productDetail_buyCount_notEmpty:"<i18n:msg key="productDetail.buyCount.notEmpty"/>",
    productDetail_buyCount_integer:"<i18n:msg key="productDetail.buyCount.integer"/>",
    productDetail_buyCount_notLtMinOrderQuantity:"<i18n:msg key="productDetail.buyCount.notLtMinOrderQuantity"/>",
    productDetail_selectSkuFirst:"<i18n:msg key="productDetail.selectSkuFirst"/>",
    productDetail_button_copyToClipBoard_tip:"<i18n:msg key="productDetail.button.copyToClipBoard.tip"/>",
    productDetail_inventory_availableQuantity:"<i18n:msg key="productDetail.inventory.availableQuantity"/>",
    productDetail_inventory_lackStock:"<i18n:msg key="productDetail.inventory.lackStock"/>"
    
};
$j.extend(__FMT, __FMTExtend); 
</c:if>

<%-- 比较车 --%>
<c:if test="${probizJs_compareCart == true}">
__FMTExtend = {
	compareCart_productTypeNotAllow:"<fmt:message key="compareCart.productTypeNotAllow"/>",
    compareCart_exceedMaxCount1:"<fmt:message key="compareCart.exceedMaxCount1"/>",
    compareCart_exceedMaxCount2:"<fmt:message key="compareCart.exceedMaxCount2"/>"
};
$j.extend(__FMT, __FMTExtend); 	
</c:if>

<%-- 评论 --%>
<c:if test="${probizJs_productReview == true}">
__FMTExtend = {
	productReviewForm_rate_required:'<fmt:message key="productReviewForm.rate.required"/>',
	productReview_voteSuccess:"<fmt:message key="productReview.voteSuccess"/>",
	productReview_isVoted:"<fmt:message key="productReview.isVoted"/>",
    productReview_isSelfReview:"<fmt:message key="productReview.isSelfReview"/>",
    productReviewReplyForm_add_success:"<fmt:message key="productReviewReplyForm.add.success"/>",
    reviewEligibility_result_0:"<fmt:message key="reviewEligibility.result.0"/>",
    reviewEligibility_result_2:"<fmt:message key="reviewEligibility.result.2"/>",
    reviewEligibility_result_3:"<fmt:message key="reviewEligibility.result.3"/>"
};
$j.extend(__FMT, __FMTExtend); 	
</c:if>

<%-- 咨询 --%>
<c:if test="${probizJs_consult == true}">
__FMTExtend = {
	consult_voteSuccess:"<fmt:message key="consult.voteSuccess"/>",
    consult_isVoted:"<fmt:message key="consult.isVoted"/>"
};
$j.extend(__FMT, __FMTExtend); 	
</c:if>

<%-- 地区 --%>
<c:if test="${probizJs_region == true}">
__FMTExtend = {
	region_select:"<fmt:message key="region.select"/>"
};
$j.extend(__FMT, __FMTExtend); 	
</c:if>

<%-- 账户 --%>
<c:if test="${probizJs_account == true}">
__FMTExtend = {
	addressDelete:'<fmt:message key="address.deleteConfirm"/>',
    deletedConfirm:"<fmt:message key="info.deletedConfirm"/>"
};
$j.extend(__FMT, __FMTExtend); 
</c:if>

<%-- 产品列表 --%>
<c:if test="${probizJs_productList == true}">
__FMTExtend = {
	productList_introDescription_show:'<fmt:message key="productList.introDescription.show"/>',
	productList_introDescription_hide:'<fmt:message key="productList.introDescription.hide"/>'
};
$j.extend(__FMT, __FMTExtend); 
</c:if>

<%--=====================================================此为层次分割线，如果还需要多条，copy me=====================================================--%>

<%-- 前台验证框架 --%>
<c:if test="${probizJs_validation == true}">
var __vaMsg = {
	notPass:"<fmt:message key="validate.notPass"/>",
	pass:"<fmt:message key="validate.pass"/>",
	required:"<fmt:message key="validate.required"/>",
	number:"<fmt:message key="validate.number" />",
	integer:"<fmt:message key="validate.integer"/>",
	short:"<fmt:message key="validate.short"/>",
	double:"<fmt:message key="validate.double"/>",
	long:"<fmt:message key="validate.long"/>",
	maxValue:"<fmt:message key="validate.maxValue"/>",
	minValue:"<fmt:message key="validate.minValue"/>",
	maxlength:"<fmt:message key="validate.maxlength"/>",
	minlength:"<fmt:message key="validate.minlength"/>",
	price:"<fmt:message key="validate.price"/>",
	money:"<fmt:message key="validate.money"/>",
	code:"<fmt:message key="validate.code"/>",
	chineseCode:"<i18n:msg key="validate.chineseCode"/>",
	phone:"<fmt:message key="validate.phone"/>",
	mobile:"<fmt:message key="validate.mobile"/>",
	email:"<fmt:message key="validate.email"/>",
	positiveInteger:"<fmt:message key="validate.positiveInteger"/>",
	double4:"<fmt:message key="validate.double4"/>",
	noHtml:"<fmt:message key="validate.noHtml"/>",
	radio:"<fmt:message key="validate.radio"/>",
	url:"<fmt:message key="validate.url"/>",
	date:"<fmt:message key="validate.date"/>",
	mask:"<i18n:msg key="validate.mask"/>",
	twofields:"<i18n:msg key="validate.twofields"/>",
	bill_n:"<fmt:message key="billingAddress.system"/>",
	wrap_n:"<fmt:message key="checkout.wrap.notDIS"/>",
	gcno_null:"<fmt:message key="checkout.giftCertificateNoNotNull"/>"
};
</c:if>

</script>